package com.hou.serviceImpl;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;

import com.hou.mapper.DroolMapper;
import com.hou.mapper.GoodsMapper;

import com.hou.pojo.Rule;
import com.hou.service.DroolService;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;


@Service
public class DroolServiceImpl extends ServiceImpl<DroolMapper, Rule> implements DroolService {
    @Autowired
    DroolMapper droolMapper;

    @Override
    public void updateBymap(Rule rule) {
        droolMapper.updateById(rule);
    }

    @Override
    public List<Rule> select() {
        List<Rule> rules = droolMapper.selectList(new QueryWrapper<Rule>());
        return rules;
    }
}
